// routes/index.js
const userRoutes = require("./user");
const itemRoutes = require("./item");
const categoryRoutes = require("./category");
const userStatsRouter = require("./userStats");
const userAdminRouter = require("./admin/user");
const bannerRouter = require("./banner");
const uploadRouter = require("./upload");
const labelRouter = require("./label");
const favoriteRouter = require("./favorite");
const houseRouter = require("./house");

module.exports = (app) => {
    app.use("/api/users", userRoutes);
    app.use("/api/item", itemRoutes);
    app.use("/api/category", categoryRoutes);
    app.use("/api/userStats", userStatsRouter);
    app.use("/api/admin/users", userAdminRouter);
    app.use("/api/banner", bannerRouter);
    app.use('/api/upload', uploadRouter);
    app.use('/api/label', labelRouter);
    app.use('/api/favorite', favoriteRouter);
    app.use('/api/house', houseRouter);
};
